package com.campus.help.repository;

import com.campus.help.entity.Task;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface TaskRepository extends JpaRepository<Task, Integer> {
    Optional<Task> findByTaskId(String taskId);
    List<Task> findByPublisherId(String publisherId);
    List<Task> findByAcceptorId(String acceptorId);
    List<Task> findByStatus(String status);
}